package com.aidex.biz.service;

import com.aidex.biz.domain.Customer;
import com.aidex.common.core.domain.entity.SysUser;
import com.aidex.common.core.service.BaseService;
import com.aidex.biz.domain.PushRule;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 分配规则Service接口
 *
 * @author sean
 * @email 2074844820@qq.com
 * @date 2025-03-11
 */
public interface PushRuleService extends BaseService<PushRule> {

    /**
     * 批量删除分配规则
     *
     * @param ids 需要删除的分配规则ID集合
     * @return 结果
     */
    public int deletePushRuleByIds(String[] ids);

    /**
     * 获取最大编号
     *
     * @param pushRule 分配规则
     * @return 结果
     */
    public int findMaxSort(PushRule pushRule);

    /**
     * 查询符合条件的第一条数据
     *
     * @param pushRule
     * @return
     */
    public PushRule findExist(PushRule pushRule);

    /**
     * 查询分配规则
     *
     * @param pushRuleParam
     * @return
     */
    @Transactional(readOnly = false)
    public PushRule getPushRule(PushRule pushRuleParam);

    /**
     * 按人员分配规则查询
     *
     * @param pushRule
     * @return
     */
    public List<PushRule> findRuleListByUser(PushRule pushRule);
}
